﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BicycleTrafficSimulator.DataModel
{
    public class Score
    {
        private int value;

        public int Value
        {
            get { return this.value; }
            set { this.value = value; }
        }

        public Score()
        {
            this.value = 0;
        }

        public void increaseValue()
        {
            this.value += 100;
        }

        public void decreaseValue()
        {
            if (value < 100) value = 0;
            else value -= 100;
        }
    }
}
